package com.springbook;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class BikesController implements Controller {

	private RentABike facade;
	
	
	public RentABike getFacade() {
		return facade;
	}


	public void setFacade(RentABike facade) {
		this.facade = facade;
	}


	public ModelAndView handleRequest(HttpServletRequest arg0,
			HttpServletResponse arg1) throws Exception {
		// TODO Auto-generated method stub
		return new ModelAndView("bikes", "rentaBike", facade);
	}

}
